"""cherry URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
# coding:utf-8
from django.contrib import admin
from django.urls import path, include, re_path
from shareFun import views as sf_view

urlpatterns = [

    path('', include('shareFun.urls')),
    path('', include('novel.urls')),
    path('', include('note.urls'))
    # path('admin/', admin.site.urls),
    # path('share/', sf_view.indextest),
    # path('add/', sf_view.add, name='add'),
    # # 在2.0版本中将正则表达式的匹配放在了re_path中，path无法解析正则的匹配
    # re_path(r'^add2/(\d+)/(\d+)/$', sf_view.add2, name='add2'),

    # re_path(r'^sub/(\d+)/(\d+)/$', sf_view.old_sub_redirect, name='sub'),  # 旧链接
    # re_path(r'^new_sub/(\d+)/(\d+)/$', sf_view.sub, name='sub'),  # 新链接
]
